package edu.sctu.practice.class01.wujiayi.text01;

/**
 * Created by acer1 on 2015/10/15.
 */
public class A {
    public static int v = 100;
    public String numberGuess(int num){
        String fruit="";
        if (v==num){

            fruit = "猜测成功";
        }else if (v<num){

            fruit = "猜测失败，数字过大";

        }else {
            fruit = "猜测失败，数字过小";
        }
        return fruit;
    }
}
